package com.zerous.simplerts.math;

public class Vec2
{
	public float x, y;
	
	public Vec2()
	{
		
	}
	
	public Vec2(float x, float y)
	{
		this.x = x;
		this.y = y;
	}
	
	public Vec2(Vec2 v)
	{
		x = v.x;
		y = v.y;
	}
	
	public Vec2 add(Vec2 other)
	{
		x += other.x;
		y += other.y;
		return this;
	}
	
	public Vec2 mul(Vec2 other)
	{
		x *= other.x;
		y *= other.y;
		return this;
	}
	
	public void set(float x, float y)
	{
		this.x = x;
		this.y = y;
	}
}
